package team.se.tms.util;

import team.se.tms.po.LabelInfo;
import team.se.tms.po.MenuInfo;
import team.se.tms.po.UserInfo;

import java.awt.*;

/**
 * 检查格式工具类
 *
 * @author winkyle
 * @date 2018/11/7
 */
public class FormatUtil {

    /**
     * 检查主键格式
     *
     * @param id 主键
     * @return 格式正确返回true，否则返回false
     * @create on 2018/11/6 by winkyle
     */
    public static boolean checkPkFormat(String id) {
        System.out.println("执行checkPkFormat进行检测"+id);
        return true;
    }

    public static boolean checkFormat(MenuInfo menuInfo) {

        return true;
    }

    public static boolean checkFormat(UserInfo menuInfo) {

        return true;
    }
    public static boolean checkFormat(LabelInfo labelInfo) {
        System.out.println("checkFormat");
        if(labelInfo.getLabelName().equals("111")){
            return true;
        }
        return false;
    }
//    public static boolean checkFormat(LabelInfo labelInfo) {
//
//        return true;
//    }
    public static boolean checkNumFormat(Integer a) {
        if(a>10){
            return true;
        }
        return false;
    }

}
